import request from '@/utils/request'
import qs from "qs";

export default {
  //查询学生
  getPageStudentList(pagination) {
    return request({
      url: "/student/list",
      method: "get",
      params: pagination
    })
  },
  //删除院系
  deleteStudent(id) {
    return request({
      url: "/student/delete",
      method: "post",
      params: {id}
    })
  },
  //更新院系
  updateStudent(data) {
    return request({
      url: "/student/update",
      method: "post",
      data
    })
  },
  //添加院系
  addStudent(data) {
    return request({
      url: '/student/add',
      method: 'post',
      data
    })
  },
  selectById(id){
    return request({
      url: "/student/selectById",
      method: "get",
      params: {id}
    })
  }
}
